//引入样式
import "../../assets/css/normalize.less";
import "../../assets/css/reset.less";
import "../../assets/css/property.less";
import "../../assets/css/basic.less";

import "./course_detail.less";

//引入dom
import { $ } from "../../utils/dom";

import '../../assets/fonts/font_kok358gumca/iconfont.css'
import '../../assets/fonts/font_iysuojan2xi/iconfont.css'

// 引入请求接口
import { getCourseDetailReq } from "../../api/course";

/**
 * 获取课程详情
 */
// location.hash.slice(1)

const getCourseDetail = async () => {
	let res = await getCourseDetailReq({ id: location.hash.slice(1) });
	let { errno, data } = res.data;
	if (errno === 0) {
	sessionStorage.setItem("fragments",JSON.stringify(data.fragments))
    }
};
getCourseDetail();
